namespace mplat {
    export class VivoOpenAbility extends OppoOpenAbility {

        navigateToMiniProgram(param: INavigateParam) {

        }

        isStartupByShortcut(success?: (res: any) => void, fail?: () => void) {
            if (!window['qg']['isStartupByShortcut']) {
                if (!!success) success(false);
                return;
            }

            window['qg']['isStartupByShortcut']({
                success: function (status) {
                    if (status) {
                        debugLog('通过桌面图标启动应用')
                        if (!!success) success(true)
                    } else {
                        debugLog('不是通过桌面图标启动应用')
                        if (!!fail) fail()
                    }
                }
            })
        }
    }
}